//--------------------------------------------------------------------------------------
// File: DDSTextureLoader.h
//
// Function for loading a DDS texture and creating a Direct3D 11 runtime resource for it
//
// Note this function is useful as a light-weight runtime loader for DDS files. For
// a full-featured DDS file reader, writer, and texture processing pipeline see
// the 'Texconv' sample and the 'DirectXTex' library.
//--------------------------------------------------------------------------------------

#pragma once

void CreateDDSTextureFromMemory(
   _In_ ID3D11Device * d3dDevice,
   _In_reads_bytes_(ddsDataSize) const byte * ddsData,
   _In_ size_t ddsDataSize,
   _Out_opt_ ID3D11Resource * *texture,
   _Out_opt_ ID3D11ShaderResourceView * *textureView,
   _In_ size_t maxsize = 0
   );
